//关于向NULL 和非法地址拷贝内存

# include <stdio.h>
# include<string.h>
int main (void)
{
/*	char *p = NULL;
	strcpy(p,"abcdef");
	printf("%s",p);
	错误
*/
/*	char*p = 0x1111;
	strcpy(p,"abcdef");
	printf("%s",p);
	错误
*/	
	void *p = NULL;
	int arr[100]= {0};
	p = arr;
	strcpy(p,"abcdef");
	printf ("%s",(char*)p);

	return 0;
}
